package com.lianwei.hospital.Service;

import com.lianwei.hospital.module.entity.Admain;
import com.lianwei.hospital.module.entity.DoctorInfo;
import com.lianwei.hospital.module.vo.DoctorVO;
import com.lianwei.hospital.utils.PageUtil;

import java.util.List;

public interface DoctorService {
    DoctorInfo selectByPrimaryKey(String id) throws Exception;
    boolean insert(DoctorInfo doctorInfo) throws Exception;
    List<DoctorInfo> selectAll() throws Exception;
    boolean deleteByPrimaryKey(String id) throws Exception;
    boolean updateByPrimaryKey(DoctorInfo doctorInfo) throws Exception;
    /**
     * 按条件分页查询
     * @param query
     * @return
     * @throws Exception
     */
    PageUtil<DoctorInfo> findPage(DoctorVO query) throws Exception;
    DoctorInfo login(String id, String password) throws Exception;

}
